#include<stdio.h>
#include<string.h> 
int main()
{
	char word[999];
	char max;
	scanf("%s",word);
	max = word[0];
	int l = strlen(word);
	for(int i = 1;i<l;i++)
		if(word[i]>max)
			max = word[i];
	for(int i = 0;i<l;i++)
	{
		if(max!=word[i])
		  printf("%c",word[i]);
		else if(word[i]==max)
		  printf("%c(SCU)",word[i]);
	}
	return 0;
}
